<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">

        <ui:define name="content">

            <h:form>
                <h:panelGrid columns="3">









                    <h:outputLabel value="#{bundle.EditUserLabel_loginId}" for="loginId" />
                    <h:inputText id="loginId" value="#{userController.selected.loginId}" title="#{bundle.EditUserTitle_loginId}" required="true" requiredMessage="#{bundle.EditUserRequiredMessage_loginId}"/>
                    <h:message for="loginId"  errorStyle="color: red" infoStyle="color: green"/>

                    <h:outputLabel value="#{bundle.EditUserLabel_firstName}" for="firstName" />
                    <h:inputText id="firstName" value="#{userController.selected.firstName}" title="#{bundle.EditUserTitle_firstName}" required="true" requiredMessage="#{bundle.EditUserRequiredMessage_firstName}"/>
                    <h:message for="firstName"  errorStyle="color: red" infoStyle="color: green"/>

                    <h:outputLabel value="#{bundle.EditUserLabel_lastName}" for="lastName" />
                    <h:inputText id="lastName" value="#{userController.selected.lastName}" title="#{bundle.EditUserTitle_lastName}" required="true" requiredMessage="#{bundle.EditUserRequiredMessage_lastName}"/>
                    <h:message for="lastName"  errorStyle="color: red" infoStyle="color: green"/>

                    <h:outputLabel value="#{bundle.EditUserLabel_email}" for="email" />
                    <h:inputText id="email" value="#{userController.selected.email}" title="#{bundle.EditUserTitle_email}" required="true" requiredMessage="#{bundle.EditUserRequiredMessage_email}"/>
                    <h:message for="email"  errorStyle="color: red" infoStyle="color: green"/>


                    <h:outputLabel value="#{bundle.CreateUserLabel_password}" for="password" />
                    <h:inputSecret  id="password" value="#{userController.selected.password}" immediate="true" title="#{bundle.CreateUserTitle_password}" required="true" requiredMessage="#{bundle.CreateUserRequiredMessage_password}"/>
                    <h:message for="password"  errorStyle="color: red" infoStyle="color: green"/>

                    <h:outputLabel value="Confirm password" for="passwordConfirm" />
                    <h:inputSecret  id="passwordConfirm" value="#{userController.selected.passwordConfirm}" immediate="true" title="Confirm password" required="true" requiredMessage="The Confirm Password field is required" validator="#{userController.validatePassword}"/>
                    <h:message for="passwordConfirm"  errorStyle="color: red" infoStyle="color: green"/>

                </h:panelGrid>
                <h:commandLink action="#{userController.update}" value="#{bundle.EditUserSaveLink}"/>
                <br />
                <br />
                <h:commandLink action="View" value="#{bundle.EditUserViewLink}" immediate="true"/>
                <br />
                <h:commandLink action="#{userController.prepareList}" value="#{bundle.EditUserShowAllLink}" immediate="true"/>
                <br />
            
            </h:form>
        </ui:define>
    </ui:composition>

</html>
